home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / alaskan-adversary.swf / scripts / frame_150 / PlaceObject2_1621_236 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-11  |  6.9 KB  |  200 lines

  1. onClipEvent(enterFrame){
  2.    function ┬º\x01\x02┬º()
  3.    {
  4.       return 2402 % 511 * 5;
  5.    }
  6.    var ┬º\x01┬º = -1721 + "\x01\x02"();
  7.    while(true)
  8.    {
  9.       if(eval("\x01") == 69)
  10.       {
  11.          set("\x01",eval("\x01") + 790);
  12.          ┬º┬ºpush(true);
  13.       }
  14.       else if(eval("\x01") == 859)
  15.       {
  16.          set("\x01",eval("\x01") - 235);
  17.          if(function ┬º\x01\x02┬º()
  18.          {
  19.             return 2402 % 511 * 5;
  20.          })
  21.          {
  22.             set("\x01",eval("\x01") - 372);
  23.          }
  24.       }
  25.       else if(eval("\x01") == 864)
  26.       {
  27.          set("\x01",eval("\x01") - 149);
  28.          ┬º┬ºpush("\x0f");
  29.          ┬º┬ºpush(1);
  30.       }
  31.       else if(eval("\x01") == 309)
  32.       {
  33.          set("\x01",eval("\x01") + 555);
  34.       }
  35.       else
  36.       {
  37.          if(eval("\x01") == 624)
  38.          {
  39.             set("\x01",eval("\x01") - 372);
  40.             break;
  41.          }
  42.          if(eval("\x01") == 164)
  43.          {
  44.             set("\x01",eval("\x01") - 94);
  45.             ┬º┬ºpush(!function ┬º\x01\x02┬º()
  46.             {
  47.                return 2402 % 511 * 5;
  48.             });
  49.          }
  50.          else if(eval("\x01") == 389)
  51.          {
  52.             set("\x01",eval("\x01") - 225);
  53.             ┬º┬ºpush(eval(function ┬º\x01\x02┬º()
  54.             {
  55.                return 2402 % 511 * 5;
  56.             }));
  57.          }
  58.          else if(eval("\x01") == 70)
  59.          {
  60.             set("\x01",eval("\x01") - 2);
  61.             if(function ┬º\x01\x02┬º()
  62.             {
  63.                return 2402 % 511 * 5;
  64.             })
  65.             {
  66.                set("\x01",eval("\x01") + 157);
  67.             }
  68.          }
  69.          else if(eval("\x01") == 252)
  70.          {
  71.             set("\x01",eval("\x01") + 612);
  72.          }
  73.          else if(eval("\x01") == 203)
  74.          {
  75.             set("\x01",eval("\x01") + 186);
  76.             ┬º┬ºpush("\x0f");
  77.          }
  78.          else if(eval("\x01") == 715)
  79.          {
  80.             set("\x01",eval("\x01") - 512);
  81.             var ┬º┬ºpop() = function ┬º\x01\x02┬º()
  82.             {
  83.                return 2402 % 511 * 5;
  84.             };
  85.          }
  86.          else
  87.          {
  88.             if(eval("\x01") != 68)
  89.             {
  90.                if(eval("\x01") == 225)
  91.                {
  92.                   set("\x01",eval("\x01") - 43);
  93.                   if(_root.paus3)
  94.                   {
  95.                      speed = 0;
  96.                      maxspeed = 0;
  97.                   }
  98.                   if(!_root.paus3)
  99.                   {
  100.                      if(this.hitTest(_root.camera))
  101.                      {
  102.                         speed = 0;
  103.                         maxspeed = 10;
  104.                         damage = 0;
  105.                         grav++;
  106.                         _Y = _Y + grav;
  107.                         while(_root.ground.hitTest(_X,_Y,true))
  108.                         {
  109.                            _Y--;
  110.                            grav = 0;
  111.                         }
  112.                         if(_root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 2,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height / 6,true) || _root.ground.hitTest(_X + _width / 2 + ex,_Y - _height,true))
  113.                         {
  114.                            _X = _X - speed;
  115.                         }
  116.                         if(_root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 2,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height / 6,true) || _root.ground.hitTest(_X - _width / 2 - ex,_Y - _height,true))
  117.                         {
  118.                            _X = _X + speed;
  119.                         }
  120.                         moving = 0;
  121.                         above = 0;
  122.                         if(this._x < _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 15 && this._currentframe != 25 && this._currentframe != 10 && this.hitTest(_root.camera) && _root.char._currentframe != 45)
  123.                         {
  124.                            this._x += movespeed;
  125.                            _xscale = scale;
  126.                            this.gotoAndStop("run");
  127.                            attack = 0;
  128.                            moving = 1;
  129.                         }
  130.                         else if(this._x > _root.char._x && !attack && !above && !this.hitTest(_root.char) && this._currentframe != 15 && this.hitTest(_root.camera) && _root.char._currentframe != 45 && this._currentframe != 35 && this._currentframe != 10)
  131.                         {
  132.                            this._x -= movespeed;
  133.                            _xscale = - scale;
  134.                            this.gotoAndStop("run");
  135.                            attack = 0;
  136.                            moving = 1;
  137.                         }
  138.                         if(_root.char._currentframe == 45)
  139.                         {
  140.                            this.gotoAndStop("idle");
  141.                            moving = 0;
  142.                         }
  143.                         if(!moving && this._currentframe != 5)
  144.                         {
  145.                            moving = 0;
  146.                         }
  147.                         if(this._currentframe == 35)
  148.                         {
  149.                            this._x += movespeed;
  150.                         }
  151.                         jumpHits = 9;
  152.                         i = 1;
  153.                         while(i <= jumpHits)
  154.                         {
  155.                            jumpHit = _root.ground["jumpHit" + i];
  156.                            if(this.hitTest(jumpHit) && moving == 1)
  157.                            {
  158.                               grav = - jumpHeight;
  159.                               _Y = _Y - 4;
  160.                               moving = 0;
  161.                            }
  162.                            i++;
  163.                         }
  164.                         attack = 0;
  165.                         jumping = 0;
  166.                         if(this._currentframe != 15 && this.hitTest(_root.char))
  167.                         {
  168.                            if(this._currentframe != 10 && this._currentframe != 15)
  169.                            {
  170.                               this.gotoAndStop("attack_1");
  171.                            }
  172.                            if(this._currentframe != 10 && this._currentframe != 15)
  173.                            {
  174.                               attack = 0;
  175.                            }
  176.                         }
  177.                         if(this.hitTest(_root.fall))
  178.                         {
  179.                            this.gotoAndStop("death");
  180.                            if(this._currentframe != 15)
  181.                            {
  182.                               _global.kills += 1;
  183.                            }
  184.                         }
  185.                      }
  186.                   }
  187.                   break;
  188.                }
  189.                if(eval("\x01") == 182)
  190.                {
  191.                   set("\x01",eval("\x01") - 182);
  192.                }
  193.                break;
  194.             }
  195.             set("\x01",eval("\x01") + 157);
  196.          }
  197.       }
  198.    }
  199. }
  200.